<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>平台询价</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="../../../../elementUI/index.css">
  <link rel="stylesheet" href="../../../../css/index.css">
</head>

<body>
  <div id="app" class="minWidth">
    <el-form :inline="true" :form="form">
      <el-form-item label="商品名称">
        <el-input v-model="form.Article_Name" placeholder="请输入商品名称" />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSerach">查询</el-button>
      </el-form-item>
      <!-- <el-form-item>
        <el-button type="primary" @click="onExcel">导出</el-button>
      </el-form-item> -->
    </el-form>

    <el-table @expand-change="handleChildren" :data="tableData.slice((form.page-1)*form.limit,form.page*form.limit)"
      id="out-table" stripe border height="calc(100vh - 140px)" style="width: 100%">
      <el-table-column type="expand" width="60">
        <template slot-scope="props">
          <el-table :data="props.row.Children.article_specifications">
            <el-table-column type="index" width="50" label="序号"></el-table-column>
            <el-table-column prop="Article_Specifications_SerialNumber" label="规格编号"></el-table-column>
            <el-table-column prop="Specifications_Name" label="产品规格"></el-table-column>
            <el-table-column prop=" Picture_URL" label="图片" width="125">
              <template v-slot="{row}">
                <el-image style="width: 100px; height: 100px; border-radius: 9px;"
                  class="el-upload-list__item-thumbnail" style="width: 148px; height: 148px"
                  :src="DomainIMG + row.Picture_URL" fit="contain"></el-image>
                </span>
              </template>
            </el-table-column>
            <el-table-column prop="Net_Content" label="净含量"></el-table-column>
            <el-table-column prop="Unit_Price" label="零售价"></el-table-column>
            <el-table-column prop="Packing" label="装箱数"></el-table-column>
            <el-table-column prop="PackingSize" label="装箱尺寸"></el-table-column>
            <el-table-column prop="OutsidePackingSize" label="外箱尺寸"></el-table-column>
          </el-table>
        </template>
      </el-table-column>
      <el-table-column label="序号" width="50" type="index"></el-table-column>
      <el-table-column prop="Article_SerialNumber" label="商品编号"></el-table-column>
      <el-table-column prop="Article_Name" label="商品名称"></el-table-column>
      <el-table-column prop="Item_Name" sortable label="款号"></el-table-column>
      <el-table-column prop="Unit_Price" sortable label="吊牌价"></el-table-column>
      <el-table-column label="商品图片" width="125">
        <template v-slot="{row}">
          <el-image style="width: 100px; height: 100px; border-radius: 9px;" fit="cover"
            @click="handlePreview(row.Article_SerialNumber)" :src="DomainIMG + row.Picture_URL"></el-image>
        </template>
      </el-table-column>
      <el-table-column prop="Enterprise_Name" label="所属企业"></el-table-column>
      <el-table-column prop="Brand_Name" label="品牌"></el-table-column>
      <el-table-column prop="Category_Name" label="系列"></el-table-column>

      <!-- <el-table-column label="操作" width="220">
        <template v-slot="{row}">
          <el-button type="success" size="small" @click="showMember(row.Sales_Unit_Price_SerialNumber)">查看</el-button>
          <el-button type="primary" size="small" @click="editMember(row.Sales_Unit_Price_SerialNumber)">编辑</el-button>
          <el-button type="danger" size="small" @click="deletMember(row.Sales_Unit_Price_SerialNumber)">作废</el-button>
        </template>
      </el-table-column> -->
    </el-table>

    <el-pagination background v-show="total > 0" @size-change="handleSizeChange" @current-change="handleCurrentChange"
      :current-page="form.page" :page-sizes="[10,20,30,50]" :page-size="form.limit"
      layout="total, sizes, prev, pager, next, jumper" :total="total">
    </el-pagination>
  </div>
  <script type="text/javascript" src="../../../../js/jquery-3.6.0.min.js"></script>
  <script type="text/javascript" src="../../../../js/jquery.cookie.js"></script>
  <script type="text/javascript" src="../../../../js/vue.min.js"></script>
  <script type="text/javascript" src="../../../../elementUI/index.js"></script>
  <script type="text/javascript" src="../../../../js/utils.js"></script>
  <script type="text/javascript" src="../../../../js/FileSaver.min.js"></script>
  <script type="text/javascript" src="../../../../js/FileSaver.js"></script>
  <script type="text/javascript" src="../../../../js/xlsx.full.min.js"></script>
  <script type="text/javascript" src="./js/PlatformInquiry.js"></script>
</body>

</html>